<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/blog/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/blog/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/blog/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Log,">










<meta name="description" content="这是SIEM（安全信息与事件管理系统Security Information and Event Management）其中之一的平台Splunk的官方认证，当然，是最基础也是是免费的，让用户先了解一下Splunk的主要功能模块以及默认Search&amp;amp;Reporting的搜索技巧。">
<meta name="keywords" content="Log">
<meta property="og:type" content="article">
<meta property="og:title" content="Splunk Fundamentals Part 1">
<meta property="og:url" content="https://catchmenow.gitee.io/blog/2020/01/31/1/index.html">
<meta property="og:site_name" content="ssilent&#39;s blog">
<meta property="og:description" content="这是SIEM（安全信息与事件管理系统Security Information and Event Management）其中之一的平台Splunk的官方认证，当然，是最基础也是是免费的，让用户先了解一下Splunk的主要功能模块以及默认Search&amp;amp;Reporting的搜索技巧。">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2020-02-10T04:41:25.276Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Splunk Fundamentals Part 1">
<meta name="twitter:description" content="这是SIEM（安全信息与事件管理系统Security Information and Event Management）其中之一的平台Splunk的官方认证，当然，是最基础也是是免费的，让用户先了解一下Splunk的主要功能模块以及默认Search&amp;amp;Reporting的搜索技巧。">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: 'ssilent'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://catchmenow.gitee.io/blog/2020/01/31/1/">





  <title>Splunk Fundamentals Part 1 | ssilent's blog</title>
  








</head>

<body itemscope="" itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>
    <a href="https://github.com/Mitsushima0" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewbox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"/><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
    
    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">ssilent's blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blog/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/blog/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://catchmenow.gitee.io/blog/blog/2020/01/31/1/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="ssilent">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/p2.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="ssilent's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Splunk Fundamentals Part 1</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2020-01-31T09:16:52+08:00">
                2020-01-31
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope="" itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/certificate/" itemprop="url" rel="index">
                    <span itemprop="name">certificate</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blog/2020/01/31/1/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count valine-comment-count" data-xid="/blog/2020/01/31/1/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  743
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  3
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>这是SIEM（安全信息与事件管理系统Security Information and Event Management）其中之一的平台Splunk的官方认证，当然，是最基础也是是免费的，让用户先了解一下Splunk的主要功能模块以及默认Search&amp;Reporting的搜索技巧。<br><a id="more"></a><br>课程不长，官方推荐用时大约4h，但是糟糕的网速体验实际上可能不止这么长。（建议直接看pdf版课件，把视频pass了，虽然视频里的小哥很搞笑，有次衣服上写着“Log I’m your father”，而且每集衣服上的字都不一样）</p>
<h2 id="时间范围"><a href="#时间范围" class="headerlink" title="时间范围"></a>时间范围</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">s = seconds m = minutes h = hours d = days w = weeks mon = months y = year</span><br><span class="line"></span><br><span class="line">#指回溯到整点，比如-30m@h就是减30分钟的小时数</span><br><span class="line">@h </span><br><span class="line"></span><br><span class="line">#最早最晚</span><br><span class="line">earliest=-2d@d latest=@d</span><br></pre></td></tr></table></figure>
<h2 id="Field注意点"><a href="#Field注意点" class="headerlink" title="Field注意点"></a>Field注意点</h2><h3 id="大小写"><a href="#大小写" class="headerlink" title="大小写"></a>大小写</h3><p>field_name敏感，field_value不敏感</p>
<h3 id="IP子网"><a href="#IP子网" class="headerlink" title="IP子网"></a>IP子网</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">clientip=&quot;202.120.2.0/24&quot; clinetip=&quot;202.120.2.*&quot;</span><br></pre></td></tr></table></figure>
<h3 id="NOT和"><a href="#NOT和" class="headerlink" title="NOT和!="></a>NOT和!=</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">(fail*) NOT status=200 #返回所有，包括不含status字段的</span><br><span class="line">(fail*) status!=200 #仅返回包括status字段但不等于200的</span><br></pre></td></tr></table></figure>
<h2 id="搜索Tips"><a href="#搜索Tips" class="headerlink" title="搜索Tips"></a>搜索Tips</h2><ol>
<li>时间过滤器（尽可能早）</li>
<li>在搜索内容开始先具体化一到两个index，避免使用通配符而是使用OR</li>
<li>尽可能多包含几个关键词</li>
<li>尽可能具体化</li>
<li>包含比排除好</li>
</ol>
<h2 id="搜索语法"><a href="#搜索语法" class="headerlink" title="搜索语法"></a>搜索语法</h2><h3 id="table"><a href="#table" class="headerlink" title="table"></a>table</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">#创建一个仅包含几个field的表格，且按给出的顺序</span><br><span class="line">table field_name1, field_name2, field_name3</span><br></pre></td></tr></table></figure>
<h3 id="rename"><a href="#rename" class="headerlink" title="rename"></a>rename</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">#此时重命名不用按顺序</span><br><span class="line">table field_name1, field_name2, field_name3 | rename field_name3 AS field_name_new3,field_name2 as field_name_new2, field_name1 as &quot;field name new1&quot;</span><br></pre></td></tr></table></figure>
<h3 id="fields"><a href="#fields" class="headerlink" title="fields"></a>fields</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">#包含或排除某些fields</span><br><span class="line">fields + #等同于直接fields</span><br><span class="line">fields -</span><br></pre></td></tr></table></figure>
<h3 id="dedup"><a href="#dedup" class="headerlink" title="dedup"></a>dedup</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">#去除某些fields的重复结果</span><br><span class="line">dedup field_name1 field_name2</span><br></pre></td></tr></table></figure>
<h3 id="sort"><a href="#sort" class="headerlink" title="sort"></a>sort</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">#sort默认是升序即sort +，降序是sort -</span><br><span class="line">#limit限制返回数量</span><br><span class="line">... sort limit=20 -field_name1, field_name2</span><br><span class="line">... sort 20 field_name1</span><br></pre></td></tr></table></figure>
<h2 id="转换视图命令"><a href="#转换视图命令" class="headerlink" title="转换视图命令"></a>转换视图命令</h2><h3 id="top（展示最多的）"><a href="#top（展示最多的）" class="headerlink" title="top（展示最多的）"></a>top（展示最多的）</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">#top不加数值默认是10，展示出所选field排名前十的index</span><br><span class="line">#其他数值用limit或者直接数字确定</span><br><span class="line">... | top limit=20 field_name1</span><br><span class="line"></span><br><span class="line">#展示两个field的计数前十，showperc默认为t</span><br><span class="line">| top field_name1 field_name2 showperc=f</span><br><span class="line"></span><br><span class="line">#展示由相同field2确定的前三数量的field1</span><br><span class="line">top field1 by field2 limit=3</span><br><span class="line"></span><br><span class="line">#将count字段改名</span><br><span class="line">top field1 field2 limit=3 countfield=&quot;total view&quot;</span><br></pre></td></tr></table></figure>
<h3 id="rare（展示最少的）"><a href="#rare（展示最少的）" class="headerlink" title="rare（展示最少的）"></a>rare（展示最少的）</h3><p>options同top</p>
<h3 id="status命令"><a href="#status命令" class="headerlink" title="status命令"></a>status命令</h3><h4 id="count"><a href="#count" class="headerlink" title="count"></a>count</h4><p>返回符合搜索标准的总数</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">...| stats count</span><br><span class="line">...| stats count as &quot;new field&quot; </span><br><span class="line">...| stats count(field1) as action_event,count as total_event #返回两个总数</span><br><span class="line">...| stats count by field1,field2,field3</span><br></pre></td></tr></table></figure>
<h4 id="distinct-count-OR-dc"><a href="#distinct-count-OR-dc" class="headerlink" title="distinct_count OR dc"></a>distinct_count OR dc</h4><p>返回符合搜索标准且不重复的总数</p>
<p>options同count</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">stats dc(field1) as &quot;http_field&quot;</span><br></pre></td></tr></table></figure>
<h4 id="sum"><a href="#sum" class="headerlink" title="sum"></a>sum</h4><p>数值型field的求和</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">...| stats count(price) as &quot;Units sold&quot; sum(price) as &quot;total sales&quot; by product_name</span><br></pre></td></tr></table></figure>
<h4 id="avg"><a href="#avg" class="headerlink" title="avg"></a>avg</h4><p>数值型field的平均</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">...|stats avg(sc_bytes) as &quot;average bytes&quot; by usage</span><br></pre></td></tr></table></figure>
<h4 id="list"><a href="#list" class="headerlink" title="list"></a>list</h4><p>列出给定field的所有值</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">...|stats list(user_money) as &quot;personal fortune&quot; by user_name</span><br></pre></td></tr></table></figure>
<h4 id="values"><a href="#values" class="headerlink" title="values"></a>values</h4><p>列出给定区域的独特值（不重复的）</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">...|stats values(user) as &quot;User name&quot;,count(user) as Attempts by ip</span><br></pre></td></tr></table></figure>
<h2 id="Lookup命令"><a href="#Lookup命令" class="headerlink" title="Lookup命令"></a>Lookup命令</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">| inputlookup xxx.csv </span><br><span class="line">| lookup xxx.csv as xxx OUTPUT user as user_field #仅输出user栏</span><br><span class="line">#防止覆写，可以用outputnew</span><br></pre></td></tr></table></figure>

      
    </div>
    
    
    

    <div>
      
        
<div class="my_post_copyright">
  <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>

  <!-- JS库 sweetalert 可修改路径 -->
  <script src="https://cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script>
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  <p><span>本文标题:</span><a href="/blog/2020/01/31/1/">Splunk Fundamentals Part 1</a></p>
  <p><span>文章作者:</span><a href="/" title="访问 ssilent 的个人博客">ssilent</a></p>
  <p><span>发布时间:</span>2020年01月31日 - 09:16</p>
  <p><span>最后更新:</span>2020年02月10日 - 12:41</p>
  <p><span>原始链接:</span><a href="/blog/2020/01/31/1/" title="Splunk Fundamentals Part 1">https://catchmenow.gitee.io/blog/2020/01/31/1/</a>
    <span class="copy-path" title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="https://catchmenow.gitee.io/blog/2020/01/31/1/" aria-label="复制成功！"></i></span>
  </p>
  <p><span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)">署名-非商业性使用-禁止演绎 4.0 国际</a> 转载请保留原文链接及作者。</p>
</div>
<script>
    var clipboard = new Clipboard('.fa-clipboard');
    $(".fa-clipboard").click(function(){
      clipboard.on('success', function(){
        swal({
          title: "",
          text: '复制成功',
          icon: "success",
          showConfirmButton: true
          });
  });
    });
</script>

      
    </div>

    <div>
      
        <div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">-------------本文结束<i class="fa fa-heartbeat"></i>感谢您的阅读-------------</div>
    
</div>
      
    </div>

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/blog/tags/Log/" rel="tag"><i class="fa fa-tag"></i> Log</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blog/2020/01/10/21/" rel="next" title="Web安全渗透测试攻防指南（一）">
                <i class="fa fa-chevron-left"></i> Web安全渗透测试攻防指南（一）
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
    </div>
  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/blog/images/p2.jpg" alt="ssilent">
            
              <p class="site-author-name" itemprop="name">ssilent</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog/archives/">
              
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/blog/categories/index.html">
                  <span class="site-state-item-count">5</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/blog/tags/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#时间范围"><span class="nav-number">1.</span> <span class="nav-text">时间范围</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Field注意点"><span class="nav-number">2.</span> <span class="nav-text">Field注意点</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#大小写"><span class="nav-number">2.1.</span> <span class="nav-text">大小写</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#IP子网"><span class="nav-number">2.2.</span> <span class="nav-text">IP子网</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#NOT和"><span class="nav-number">2.3.</span> <span class="nav-text">NOT和!=</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#搜索Tips"><span class="nav-number">3.</span> <span class="nav-text">搜索Tips</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#搜索语法"><span class="nav-number">4.</span> <span class="nav-text">搜索语法</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#table"><span class="nav-number">4.1.</span> <span class="nav-text">table</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#rename"><span class="nav-number">4.2.</span> <span class="nav-text">rename</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#fields"><span class="nav-number">4.3.</span> <span class="nav-text">fields</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#dedup"><span class="nav-number">4.4.</span> <span class="nav-text">dedup</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#sort"><span class="nav-number">4.5.</span> <span class="nav-text">sort</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#转换视图命令"><span class="nav-number">5.</span> <span class="nav-text">转换视图命令</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#top（展示最多的）"><span class="nav-number">5.1.</span> <span class="nav-text">top（展示最多的）</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#rare（展示最少的）"><span class="nav-number">5.2.</span> <span class="nav-text">rare（展示最少的）</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#status命令"><span class="nav-number">5.3.</span> <span class="nav-text">status命令</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#count"><span class="nav-number">5.3.1.</span> <span class="nav-text">count</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#distinct-count-OR-dc"><span class="nav-number">5.3.2.</span> <span class="nav-text">distinct_count OR dc</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#sum"><span class="nav-number">5.3.3.</span> <span class="nav-text">sum</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#avg"><span class="nav-number">5.3.4.</span> <span class="nav-text">avg</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#list"><span class="nav-number">5.3.5.</span> <span class="nav-text">list</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#values"><span class="nav-number">5.3.6.</span> <span class="nav-text">values</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Lookup命令"><span class="nav-number">6.</span> <span class="nav-text">Lookup命令</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

<div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">ssilent</span>

  
</div>

<div class="powered-by">
<i class="fa fa-user-md"></i><span id="busuanzi_container_site_uv">
  本站访客数:<span id="busuanzi_value_site_uv"></span>
</span>
</div>


<!--

 <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>

  -->


  <span class="post-meta-divider">|</span>


<!--

  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>

-->



<div class="theme-info">
  <div class="powered-by"></div>
  <span class="post-count">博客全站共17k字</span>
</div>
        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/blog/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/blog/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/blog/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/blog/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/blog/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/blog/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  










  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/valine/dist/Valine.min.js"></script>

  <script type="text/javascript">
    var GUEST = ['nick','mail','link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item=>{
      return GUEST.indexOf(item)>-1;
    });
    new Valine({
        el: '#comments' ,
        verify: false,
        notify: false,
        appId: 'lYp2MtSUmdwhTqLdx7PMPM2R-gzGzoHsz',
        appKey: 'tuvkxTJOf6ngjmCMKwn7e5TS',
        placeholder: '旺仔QQ糖，你也要来一颗吗？',
        avatar:'mm',
        guest_info:guest,
        pageSize:'10' || 10,
    });
  </script>



  





  

  

  

  
  

  

  

  

  
  
  
<script src="/blog/live2dw/lib/L2Dwidget.min.js?0c58a1486de42ac6cc1c59c7d98ae887"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","model":{"jsonPath":"live2d-widget-model-shiziku"},"display":{"position":"left","width":75,"height":150},"mobile":{"show":true},"log":false,"tagMode":false});</script></body>
</html>
